function func201(e, t, o) {
    "use strict";
    Object.defineProperty(t, "__esModule", {
      value: !0
    });
    var n = l(o(48));
    t.default = function(e, t) {
      var o = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "get",
        l = e && e.indexOf("wechat"),
        _ = !!Object.getPrototypeOf(t)
        .append;
      if (Object.assign(O, t.headers), "GET" === o.toLocaleUpperCase()) return (0, i.default)("" + (l < 0 ? r.APIBASE : r.WECHAT) + e + "?" + (0, a.formatData)(t), {
          method: "GET",
          headers: (0, n.default)({}, O)
        })
        .then((function(e) {
          if (e.status >= 400) throw s(), new Error("Bad response from server");
          return e.json()
        }))
        .then((function(e) {
          if (1 === e.code && "/giftBagReg" !== window.location.pathname)(0, a.setCookie)("ownLogin", 1), E();
          else if (9 === e.code && "/giftBagReg" !== window.location.pathname) {
            if ((0, a.delCookie)("token"), (0, a.setCookie)("ownLogin", 1), "/luckyDraw" === window.location.pathname || "/luckyDrawDetails" === window.location.pathname) return;
            E()
          } else {
            if (10 !== e.code) return e;
            (0, a.frozen)(e.msg)
          }
        }));
      if ("POST" === o.toLocaleUpperCase()) {
        var T = (0, n.default)({}, O);
        return _ || (T["Content-Type"] = "application/json"), (0, i.default)("" + (l < 0 ? r.APIBASE : r.WECHAT) + e, {
            method: "POST",
            headers: T,
            body: _ ? t : JSON.stringify(t)
          })
          .then((function(e) {
            return e.json()
          }))
          .then((function(e) {
            if (1 === e.code) E();
            else {
              if (9 !== e.code) return e;
              if ((0, a.delCookie)("token"), "/luckyDraw" === window.location.pathname || "/luckyDrawDetails" === window.location.pathname) return;
              (0, a.setCookie)("ownLogin", 0), E()
            }
          }))
      }
      return null
    };
    var i = l(o(207)),
      a = o(26),
      r = o(209);
  
    function l(e) {
      return e && e.__esModule ? e : {
        default: e
      }
    }
    var s = function() {
        var e = window.location.pathname;
        window.location.replace("/error?originPath=" + e)
      },
      E = function() {
        var e = window.location.pathname;
        window.location.replace("/login?callback=" + e + window.location.search)
      },
      O = {}
  }